/*
 * HomeWork1.fx
 *
 * Created on 05.09.2009, 18:36:30
 */

package javafx179labs.Lisowski.lab1;

/**
 * @author Лисовский Константин
 */
//Убирайте неиспользуемые импорты. Вам же редактор подсказывает, что вы не используете.
import javafx.stage.Stage;
import javafx.scene.Scene;
import javafx.scene.text.Text;
import javafx.scene.text.Font;
import javafx.scene.effect.Glow;
import javafx.scene.shape.Circle;
import javafx.scene.paint.Color;
import javafx.scene.effect.Effect;
import javafx.scene.shape.Rectangle;
import javafx.scene.effect.BoxBlur;
import javafx.scene.shape.Polygon;
import javafx.scene.shape.Ellipse;
import javafx.scene.shape.Polyline;
import javafx.scene.shape.Arc;
import javafx.scene.shape.ArcType;
import javafx.scene.shape.Line;
import javafx.scene.transform.Shear;
import javafx.scene.Group;
import javafx.scene.effect.Shadow;
import javafx.scene.effect.Bloom;
import java.lang.Math;

Stage {
    title: "Открытка"
    width: 250
    height: 530
    scene: Scene {
            fill: Color.BLACK
        content: [
                Arc {
                        centerX: 125, centerY: 500
                        radiusX: 250, radiusY: 125
                        startAngle: 0, length: 180
                        type: ArcType.CHORD
                        fill: Color.SNOW
                }
                Text {
                        font : Font {
                                size: 24
                        }
                        
                        x: 10, y: 30
                        content: "С НОВЫМ ГОДОМ!"
                        fill: Color.RED
                        transforms: Shear { x: 0.15 y: 0.2}
                        effect: Glow{
                                level: 1
                                
                        }
                }
                Group {
                        content: [
                Circle {
                        centerX: 120, centerY: 400
                        radius: 80
                        fill: Color.SNOW
                        stroke: Color.LIGHTGRAY
                        strokeWidth: 1
                }
                Circle {
                        centerX: 120, centerY: 300
                        radius: 60
                        fill: Color.SNOW
                }
                Circle {
                        centerX: 120, centerY: 220
                        radius: 40
                        fill: Color.SNOW
                }
                Arc {
                        centerX: 120, centerY: 220
                        radiusX: 40, radiusY: 40
                        startAngle: 180, length: 180
                        fill: Color.SNOW
                        stroke: Color.GRAY
                        strokeWidth: 2.5
                }
                Line {
                        startX: 160, startY: 200
                        endX: 160, endY: 220
                        strokeWidth: 2.5
                        stroke: Color.GRAY
                }
                Line {
                        startX: 80, startY: 200
                        endX: 80, endY: 220
                        strokeWidth: 2.5
                        stroke: Color.GRAY
                }
                Polygon {
                        points : [ 75,200, 100,130, 140,130, 165,200 ]
                        fill: Color.GRAY
                }
                Circle {
                        centerX: 100, centerY: 210
                        radius: 5
                        fill: Color.BLACK
                }
                Circle {
                        centerX: 130, centerY: 210
                        radius: 5
                        fill: Color.BLACK
                }
                Polygon {
                        points : [ 120,220, 120,240, 75,230 ]
                        fill: Color.ORANGERED
                        transforms: [] rotate: -10
                }
                Circle {
                        centerX: 115, centerY: 270
                        radius: 7
                        fill: Color.BLACK
                }
                Circle {
                        centerX: 115, centerY: 270
                        radius: 7
                        fill: Color.BLACK
                        transforms: [] translateY: 30
                }
                Circle {
                        centerX: 115, centerY: 270
                        radius: 7
                        fill: Color.BLACK
                        transforms: [] translateY: 60
                }
                Circle {
                        centerX: 115, centerY: 270
                        radius: 7
                        fill: Color.BLACK
                        transforms: [] translateY: 90
                }
                Circle {
                        centerX: 115, centerY: 270
                        radius: 7
                        fill: Color.BLACK
                        transforms: [] translateY: 120
                }
                        ]
                        transforms: [] translateY: -30
                }
                Text {
                        font : Font {
                                name: "Kunstler Script"
                                size: 30
                        }
                        x: 130, y: 480
                        content: "by Volant"
                        fill: Color.RED
                }
                Group {
                        content: [ for(i in  [1..(Math.random()*50+50)])
                                    Circle {
                                    centerX: Math.random()*250
                                    centerY: Math.random()*500
                                    radius: 4
                                    fill: Color.SNOW
                                    effect: BoxBlur{height: 4, width: 4}
                                    }
                        ]
                }
         ]
    }
}